import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty, IsOptional, IsString } from 'class-validator';

export class ResubmitVideoDto {
  @ApiProperty({ description: '视频标题', required: false })
  @IsOptional()
  @IsString()
  @IsNotEmpty()
  title?: string;

  @ApiProperty({ description: '视频描述', required: false })
  @IsOptional()
  @IsString()
  description?: string;
  
  @ApiProperty({ description: '视频URL（可选，如需更换视频）', required: false })
  @IsOptional()
  @IsString()
  oss_url?: string;
  
  @ApiProperty({ description: '封面URL（可选）', required: false })
  @IsOptional()
  @IsString()
  cover_url?: string;
}